import type { SdkIframeEmbedSetupSettings } from "metabase/embedding/embedding-iframe-sdk-setup/types";

export const getAuthTypeForSettings = (
  settings: Partial<SdkIframeEmbedSetupSettings>,
) =>
  settings.isGuest
    ? "guest-embed"
    : settings.useExistingUserSession
      ? "user-session"
      : "sso";
